﻿@using CaptchaMvc.HtmlHelpers;
@{
    Layout = "~/Views/Shared/_LayoutBasic.cshtml";
}
@using (Ajax.BeginForm("CheckoutCustomCaptcha", "Cart", new { }, new AjaxOptions { HttpMethod = "Post" }, new { id = "frmCaptcha", name = "frmCaptcha" }))
{
    <div class="col-xs-12 col-sm-12 col-md-6 last">
        <input type="hidden" name="id" value="0" />
        @Html.Captcha("Yenile", "Doğrulama kodunu giriniz.", 5, "Bu alan zorunludur.")
        <div class="captchaBG"></div>
        <button type="submit" class="btn btn-custom1">Gönder</button>
    </div>
}
<script>
    function hataliCaptcha()
    {
        alert("Hatalı doğrulama kodu, tekrar deneyin.");
        location.reload();
    }
    function basariliCaptcha()
    {
        parent.$.fancybox.close();
    }
</script>
